package org.example.web.lib;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Stream;

public class Bridge {
    private static final Map<String, Object> transmits = new LinkedHashMap<>();

    public static void put(String key, Object value) {
        transmits.put(key, value);
    }

    public static Object get(String key) {
        return transmits.get(key);
    }

    public static Stream<Map.Entry<String, Object>> stream() {
        return transmits.entrySet().stream();
    }
}
